home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
mouse_c.com
/
M_MOTION.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-07-11
|
371 b
|
20 lines
/*
* m_motion.c
*
* Public Domain (p) March 1990 By Rodney Loos
* Syntax modified by S. Sampson
*/
#include "mouse.h"
/* reads the motion of the mouse */
void m_motion(int *x, int *y)
{
__Mpar->m1 = 11;
mouse(__Mpar);
*x = __Mpar->m3; /* horizontal distance since last call */
*y = __Mpar->m4; /* vertical distance since last call */
}